<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<link rel="icon" type="image/png" href="assets/img/favicon.ico">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

	<title>Light Bootstrap Dashboard by Creative Tim</title>

	<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
    <meta name="viewport" content="width=device-width" />


    <!-- Bootstrap core CSS     -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" />

    <!-- Animation library for notifications   -->
    <link href="assets/css/animate.min.css" rel="stylesheet"/>

    <!--  Light Bootstrap Table core CSS    -->
    <link href="assets/css/light-bootstrap-dashboard.css" rel="stylesheet"/>


    <!--  CSS for Demo Purpose, don't include it in your project     -->
    <link href="assets/css/demo.css" rel="stylesheet" />


</script>

    <!-- Bootstrap core CSS     -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" />

    <!-- Animation library for notifications   -->
    <link href="assets/css/animate.min.css" rel="stylesheet"/>

    <!--  Light Bootstrap Table core CSS    -->
    <link href="assets/css/light-bootstrap-dashboard.css" rel="stylesheet"/>


    <!--  CSS for Demo Purpose, don't include it in your project     -->
    <link href="assets/css/demo.css" rel="stylesheet" />


    <!--     Fonts and icons     -->
    <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'>
    <link href="assets/css/pe-icon-7-stroke.css" rel="stylesheet" />
    <script src="http://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript">
    
    $(function(){
        $("#show").on("click",function(){
        	alert("a");
            var obj={type:"GET",url:"http://localhost:8080/sysedu/teacher"};
            $.ajax(obj).done(function(res){
            	alert("b");
                createTable(res);
            });
            
            
        });
        
        function createTable(res){
            var courses=res.courses;
            alert("c");
            alert(courses);
             for(var i=0;i<courses.length;i++){
                var user=courses[i].course;
                var tr=$("<tr>");
                for(var j=0;j<5;j++)
               	{
                	
                     tr.append($("<td>").text(user[i]));                    
               	}
                tr.appendTo($("#userList"));
               
            } 
        }
        
    });
    


</script>

    <!--     Fonts and icons     -->
    <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'>
    <link href="assets/css/pe-icon-7-stroke.css" rel="stylesheet" />
</head>
<body>

<div class="wrapper">
    <div class="sidebar" data-color="purple" data-image="assets/img/sidebar-5.jpg">

    <!--   you can change the color of the sidebar using: data-color="blue | azure | green | orange | red | purple" -->


    	<div class="sidebar-wrapper">
           <div class="logo">
                <a href="#" class="simple-text">
                    教务系统
                </a>
            </div>

            <ul class="nav">
                <li>
                    <a href="course.html">
                        <i class="pe-7s-graph"></i>
                        <p>课程课表</p>
                    </a>
                </li>
                <li>
                    <a href="teacher.html">
                        <i class="pe-7s-user"></i>
                        <p>教师课表</p>
                    </a>
                </li>
                <li>
                    <a href="class.html">
                        <i class="pe-7s-note2"></i>
                        <p>班级课表</p>
                    </a>
                </li>
                <li class="active">
                    <a href="classroom">
                        <i class="pe-7s-news-paper"></i>
                        <p>教室课表</p>
                    </a>
                </li>
             
              
				<li class="active-pro">
                    <a href="upgrade.html">
                        <i class="pe-7s-rocket"></i>
                        <p>welcome you!</p>
                    </a>
                </li>
            </ul>
    	</div>
    </div>

    <div class="main-panel">
        <div  align="center" >
        
        	
			<input type="hidden" name="method" value="search">
			<input type="hidden" name="cid" value="8">
			<input type="hidden" name="back" value="list">
				<table  width="80%" border="0" cellspacing="0" cellpadding="0">
					<tr>
				  	    <td  >学年学期</td>
				  	    <td width="30px"><select name='S_id' id='S_id' >
							<option value='' selected>------</option>
							<option value='20160'>2016-2017学年第一学期</option>
							<option value='20161'>2016-2017学年第一学期</option>
							<option value='20150'>2015-2016学年第一学期</option>
							<option value='20151'>2015-2016学年第一学期</option>
							
							</select></td>
						<td  nowrap>教师：</td>
						<td><input name="pycode" type="text" id="pycode" value="" ></td>
				  	    <td><select name='TeacherID' id='TeacherID' >
							<option value='' selected>------</option>
							<option value='0000229'>白冰</option>
							<option value='0000336'>白静</option>
							<option value='0001670'>鲍礼媛</option>
							<option value='0000234'>鲍璐</option>
							<option value='0001769'>蔡文锋</option>
							<option value='0000204'>曹洁</option>
							</select></td>
				  	</tr>
				  	<tr>
				  	    <td>
					  	    <input type="radio" checked="checked" name="formamt" value="one" />格式一
							<input type="radio" name="formamt" value="two" />格式二
						</td>
						
						<td width="30px">验证码</td>
						<td nowrap width="10px">
							<input name="Check_Code" type="text" id="Check_Code" value=""  >
						</td>
						<td width="70px">
							<img src="../image/codeImage.jpg" style="CURSOR: pointer;width:70px;height:24px"/>
						</td>
						<td >
						
						<button class="btn-primary" id="show">检索</button>
						<!-- <input type="submit" value="检索" /> -->
						</td>
					</tr>
		
				</table>
			

        	
        </div>
		
		
		
		
		
		
		
         <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="header">
                                <h4 class="title" align="center">教师课表</h4>
                                
                            </div>
                            <div class="content table-responsive table-full-width">
                                <table  id="userList" class="table table-striped" border="1">
                                    <tr>
                                    	
                                    	
                                        <td>星期一</td>
                                        <td>星期二</td>
                                        <td>星期三</td>
                                        <td>星期四</td>
                                        <td>星期五</td>
                                        <td>星期六</td>
                                        <td>星期日</td>
                                    </tr>
                                   
                                </table>

                            </div>
                              
                        </div>
                    </div>



                   


                </div>
            </div>
        </div>
 


    </div>
</div>


</body>

        <!--   Core JS Files   -->
    <script src="assets/js/jquery-1.10.2.js" type="text/javascript"></script>
	<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>

	<!--  Checkbox, Radio & Switch Plugins -->
	<script src="assets/js/bootstrap-checkbox-radio-switch.js"></script>

	<!--  Charts Plugin -->
	<script src="assets/js/chartist.min.js"></script>

    <!--  Notifications Plugin    -->
    <script src="assets/js/bootstrap-notify.js"></script>

    <!--  Google Maps Plugin    -->
    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>

    <!-- Light Bootstrap Table Core javascript and methods for Demo purpose -->
	<script src="assets/js/light-bootstrap-dashboard.js"></script>

	<!-- Light Bootstrap Table DEMO methods, don't include it in your project! -->
	<script src="assets/js/demo.js"></script>

</html>
